#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>

int main()
{
	int fp = open("bite.txt",O_WRONLY|O_CREAT,0666);

	if(fp < 0)
		return -1;

	const char *s = "i like linux!";

	write(fp,s,strlen(s));

	close(fp);
	return 0;
}
